package com.fm.imgreader;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public interface ImageAnalyzer {
    String analyze(InputStream inputStream) throws IOException;

    default String analyze(File file) throws IOException {
        return analyze(new FileInputStream(file));
    }
}
